package org.pp.miniapp.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class CartAdd {

    @Schema(description = "sku的id")
    @NotNull(message = "skuId不为空")
    private Long skuId;

    @Schema(description = "数量")
    @NotNull(message = "数量不为空")
    private Integer amount;

    @Schema(description = "0为普通购物车，1为直接购买")
    @NotNull(message = "类型不为空")
    private Boolean type;
}
